<?
/*require_once '../application/models/courseware/Courseware.php';
require_once '../application/models/courseware/CoursewareManager.php';

$test=new CoursewareManager(new Courseware());*/
require_once '../application/models/courseware/FileResource.php';
require_once '../application/models/courseware/FileResourceManager.php';
/*class aaa
{
	public $a;
	function __consturct()
	{ self::$a=0;}
}
$a=array();
//for($i=0;$i<5;$i++)
//array_push($a,new aaa());

print_r($a);
echo ($a[7]);*/
$frm=FileResourceManager::instance();
$fr=$frm->createFileResource(array('Uploader_Id'=>'111'));
Handle::assignClassProps($fr,array('Uploader_Id'=>'222','Url'=>'333','Name'=>'444','Keywords'=>'555','Type'=>'666'));
//print_r($fr);
$a=array();
array_push($a,$fr);
echo $frm->saveFileResource($a);
 ?>